﻿
@{
    ViewBag.Title = "EmergencyPlanAdd";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}

@section css{
    <link href="~/Assets/css/lib/fileinput.css" rel="stylesheet" />
    <link href="~/Assets/css/lib/bootstrap-datetimepicker.min.css" rel="stylesheet" />
}

<header id="topbar">
    <div class="topbar-left">
        <ol class="breadcrumb">
            <li class="crumb-active">
                <a>导入体检记录</a>
            </li>
            <li class="crumb-trail">职业健康</li>
        </ol>
    </div>
</header>

<div id="content" ng-cloak ng-controller="OHSController" ng-init="DataLoading=false;LoadingMsg='正在导入...';page='@(Request.QueryString["page"].IsEmpty() ? "1" : Request.QueryString["page"])';">
    <div class="load" ng-show="DataLoading">
        <div class="loader">
            <svg version="1.1" id="loader-1" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">
            <path fill="#000" d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z">
            <animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite" />
			</path>
		</svg>
            <div class="load-msg" ng-bind="LoadingMsg"></div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-info panel-border top mb35">
                <div class="panel-heading">
                    <span class="panel-title">导入体检记录</span>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal" role="form">
                        <div class="form-group">
                            <label for="inputStandard" class="col-lg-2 control-label">导入数据模板</label>
                            <div class="col-lg-8">
                                <label class="control-label"><a href="~/File/Templete/OHS/职业健康体检信息导入模板.xlsx">体检信息模板</a></label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputStandard" class="col-lg-2 control-label">上传附件</label>
                            <div class="col-lg-8">
                                <input type="file" ngf-select ng-model="doc.Files" name="docfiles" id="docfiles" class="file" initialPreviewAsData="true" data-show-remove="true" data-show-preview="true" showCancel="false" data-show-upload="false" required>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="panel-footer">
                    <div class="col-lg-2"></div>
                    <button type="button" class="btn btn-primary" ng-disabled="DataLoading" ng-click="ImportCheckRecordList();">导入</button>
                    <div class="col-lg-2"></div>
                    <a href="CheckRecordPageList?page={{page}}" class="btn btn-warning">返回</a>
                </div>
            </div>
        </div>
    </div>
</div>

@section Js{
    <script src="~/Bussiness/js/libs/upload.js"></script>
    <script src="~/Bussiness/js/pg/OHS.js?v=@DateTime.Now.ToString("yyMMddHHmm")"></script>
    <script src="~/Bussiness/js/libs/moment.min.js"></script>
    <script src="~/Bussiness/js/libs/locales/date/zh-cn.js"></script>
    <script src="~/Bussiness/js/libs/bootstrap-datetimepicker.min.js"></script>
    <script src="~/Bussiness/js/libs/angularjs-datepicker.js"></script>
    <script src="~/Bussiness/js/libs/fileinput.js"></script>
    <script src="~/Bussiness/js/libs/zh.js"></script>
    <script>
        $('#docfiles').fileinput({
            language: 'zh',
            allowedFileExtensions: ['xls', 'xlsx']
        });
    </script>
}